package com.ruoyi.system.domain.module.wx;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import java.io.Serializable;
import java.util.Date;
import java.math.BigDecimal;

/**
 * 获取 scheme 码对象 url_scheme
 *
 * @author ruoyi
 * @date 2022-11-17
 */
@Data
@NoArgsConstructor
@Accessors(chain = true)
@TableName("url_scheme")
public class UrlScheme implements Serializable {

    private static final long serialVersionUID = 1L;


    /**
     * $column.columnComment
     */
    @TableId(value = "id",type = IdType.AUTO)
    private Long id;

    /**
     * $column.columnComment
     */
    private String urlTitle;

    /**
     * $column.columnComment
     */
    private Long productId;

    /**
     * $column.columnComment
     */
    private String wxMiniPath;

    /**
     *  携带参数
     */
    private String wxMiniQuery;

    /**
     * $column.columnComment
     */
    private String urlScheme;

    /**
     *  链接编码
     */
    private String urlCode;

    /**
     * $column.columnComment
     */
    private String httpUrl;

    /**
     * $column.columnComment
     */
    private Integer state;

    /**
     *  有效期天数
     */
    private Integer  expireDay;

    /**
     * $column.columnComment
     */
    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    /**
     *  是否有期限
     */
    private Integer isExpire;

    /**
     *  失效时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date expireTime;

}
